<?php
namespace app\admin\model;

class SysRole extends \think\Model
{
    public function getIdNameList()
    {
        return $this->column('id, name');
    }

    public function getpermissionIds($id)
    {
        return $this->where('id', $id)->value('permissions');
    }
}
